refactor: rename env vars to PYAUTO_* prefix#265
Merged
Conversation
Split the catch-all PYAUTOFIT_TEST_MODE into purpose-specific variables: - PYAUTO_TEST_MODE (sampler speedup, levels 0-3) - PYAUTO_SKIP_FIT_OUTPUT (pre/post-fit I/O, VRAM, result text) - PYAUTO_SKIP_VISUALIZATION (fit visualization and plotting) - PYAUTO_SKIP_CHECKS (mesh validation, position resampling, weight thresholds) Also renames: - PYAUTOARRAY_OUTPUT_MODE -> PYAUTO_OUTPUT_MODE - PYAUTO_WORKSPACE_SMALL_DATASETS -> PYAUTO_SMALL_DATASETS Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator
Author
|
Workspace PR: PyAutoLabs/autolens_workspace#51 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rename environment variables to the unified
PYAUTO_*prefix and switch mesh validation checks fromis_test_mode()toskip_checks().Depends on: PyAutoLabs/PyAutoConf#86
API Changes
Three env var renames. Hilbert mesh validation now controlled by
PYAUTO_SKIP_CHECKSinstead ofPYAUTOFIT_TEST_MODE. See full details below.Test Plan
Full API Changes (for automation & release notes)
Changed Behaviour
PYAUTOARRAY_OUTPUT_MODErenamed toPYAUTO_OUTPUT_MODE(plot/output.py, plot/utils.py)PYAUTO_WORKSPACE_SMALL_DATASETSrenamed toPYAUTO_SMALL_DATASETS(grids, masks, over_sampling, dataset_util)check_adapt_pixelisation()andcheck_adapt_background_pixels()now checkPYAUTO_SKIP_CHECKSinstead ofis_test_mode()Migration
PYAUTOARRAY_OUTPUT_MODE=1→ After:PYAUTO_OUTPUT_MODE=1PYAUTO_WORKSPACE_SMALL_DATASETS=1→ After:PYAUTO_SMALL_DATASETS=1🤖 Generated with Claude Code